//设置portal页的高度
function portalHight(percent) {
	var hight = document.body.clientHeight - 66;
	return hight * percent;
}

// treeNode的点击事件
function clickTreeNode(node) {
	var isLeaf = $('#projectMenu').tree('isLeaf', node.target);
	var url = "skip!"+node.attributes.treeId+".action";
	var title = node.text;
	if (isLeaf) {
		//alert(node.attributes.treeId);
		if ($('#tt').tabs('exists', title)) {
			//选中tab
			$('#tt').tabs('select', title);
			//刷新该tab
		} else {
			$('#tt').tabs('add', {
				title : title,
				content : '<iframe scrolling="no" frameborder="0" src="'+url+'" style="width:100%;height:100%;"></iframe>',
				closable : true
			})
		}
	} else {
		return;
	}
}